﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Admin/Admin.master" AutoEventWireup="true" CodeFile="QuanLyCauHoi.aspx.cs" Inherits="Admin_QuanLyCauHoi" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
<div class="wrap">
        <h2>
            Quản lý thông tin câu hỏi |
            <asp:HyperLink ID="HyperLink2" runat="server" CssClass="node"
            NavigateUrl="~/Admin/ThongTinGiangVien.aspx?action=1" BackColor="#F1F1F2" >Thêm giảng viên</asp:HyperLink>
             |
            <asp:HyperLink ID="HyperLink1" runat="server" CssClass="node"
            NavigateUrl="~/Admin/PhanCongViec.aspx" BackColor="#F1F1F2" >Phân công việc</asp:HyperLink>
        </h2>
    </div>
    <div style="clear: both;">&nbsp;</div>
    <hr />

<div align="center" style="width:100%; border: solid 1px #CCCCCC;padding-top:7px; height:300px;  overflow:auto;">
        <asp:UpdatePanel ID="UpdatePanel1" runat="server">
    <ContentTemplate>
            <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" 
                    CellPadding="4" DataSourceID="SqlDataSource1" ForeColor="#333333" 
                    GridLines="None" 
                AutoGenerateSelectButton="True" DataKeyNames="MaCH">
                <RowStyle BackColor="#EFF3FB" />
                <Columns>
                    <asp:BoundField DataField="MaCH" HeaderText="MaCH" SortExpression="MaCH" 
                        ReadOnly="True" />
                    <asp:BoundField DataField="NoiDungCH" HeaderText="NoiDungCH" 
                            SortExpression="NoiDungCH" />
                    <asp:BoundField DataField="DA1" HeaderText="DA1" SortExpression="DA1" />
                    <asp:BoundField DataField="DA2" HeaderText="DA2" SortExpression="DA2" />
                    <asp:BoundField DataField="DA3" HeaderText="DA3" SortExpression="DA3" />
                    <asp:BoundField DataField="DA4" HeaderText="DA4" SortExpression="DA4" />
                    <asp:BoundField DataField="DADUNG" HeaderText="DADUNG" 
                            SortExpression="DADUNG" />
                    <asp:BoundField DataField="Mucdo" HeaderText="Mucdo" SortExpression="Mucdo" />
                </Columns>
                <FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
                <PagerStyle BackColor="#2461BF" ForeColor="White" HorizontalAlign="Center" />
                <SelectedRowStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" />
                <HeaderStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
                <EditRowStyle BackColor="#2461BF" />
                <AlternatingRowStyle BackColor="White" />
            </asp:GridView>
            <asp:SqlDataSource ID="SqlDataSource1" runat="server" 
                    ConnectionString="<%$ ConnectionStrings:TracNghiemTrucTuyenConnectionString %>" 
                    SelectCommand="SELECT * FROM [tbl_NGANHANGCAUHOI]"></asp:SqlDataSource>
        </ContentTemplate>
    </asp:UpdatePanel>
    </div>
    
    <%-- Bảng thông báo xóa dữ liệu--%>
        <asp:Panel runat="server" ID="DivDeleteConfirmation" Style="display: none;" class="modalBox">
        <div>
            <div class="popup_Titlebar" id="PopupHeader">
                <div class="TitlebarLeft">
                    Xóa dữ liệu</div>
                <div class="TitlebarRight" onclick="$get('ButtonDeleteCancel').click();">
                </div>
            </div>
            <div class="popup_Body">
                <p>Bạn có chắc chắn muốn xóa ? </p>
            </div>
            <div class="popup_Buttons">
                <input id="ButtonDeleleOkay" value="Okay" type="button" />
                <input id="ButtonDeleteCancel" value="Cancel" type="button" />
            </div>
        </div>
        </asp:Panel>
    
<%--Bảng thông tin sinh viên --%>

        <asp:Panel ID="pnlPerson" runat="server" class="modalBox" Style="display:none ;"  >
            <div>
                <div class="popup_Titlebar" >
                    <div class="TitlebarLeft">
                        Thông tin sinh viên</div>
                    <div class="TitlebarRight" onclick="$get('btnCancelPerson').click();">
                    </div>
                </div>
            </div>
		    <asp:HiddenField ID="hidPersonEditIndex" runat="server" Value="-1"   />

            <table >
                <tr style="border: solid 1px #CCCCCC;">
                    <td style="width: 100px">Mã số học viên</td>
                    <td style="width: 105px">
                        <asp:TextBox ID="txtMSSV" runat="server" 
                            Width="237px"></asp:TextBox></td>
                    <td style="width: 100px">Lớp</td>
                    <td style="width: 105px"><asp:TextBox ID="txtLop" runat="server" ></asp:TextBox></td>
                </tr>
                <tr>
                    <td style="width: 100px">Họ tên</td>
                    <td style="width: 105px"><asp:TextBox ID="txtHoTenSV" runat="server" 
                            Width="234px"  ></asp:TextBox></td>
                    <td style="width: 100px">Email</td>
                    <td style="width: 105px"><asp:TextBox ID="txtEmail" runat="server"></asp:TextBox></td>
                </tr>
                <tr>
                    <td style="width: 100px">Giới tính</td>
                    <td style="width: 105px"><asp:DropDownList ID="ddlGioiTinh" runat="server" 
                            Width="85px">
                        <asp:ListItem Value="True">Nam</asp:ListItem><asp:ListItem Value="Fasle">Nữ</asp:ListItem></asp:DropDownList></td>
                    <td style="width: 100px">Số ĐT</td>
                    <td style="width: 105px"><asp:TextBox ID="txtSoDT" runat="server"></asp:TextBox></td>
                </tr>
                <tr>
                    <td style="width: 100px">Ngày sinh</td>
                    <td style="width: 105px">
                        <div style="position:relative;">
                        <asp:TextBox ID="txtNgaySinh" runat="server"></asp:TextBox>
                        <asp:ImageButton ID="Image2" runat="server" ImageUrl="~/Images/Calendar.png" />   
                            <ajaxToolkit:CalendarExtender id="CalendarExtender1" runat="server" PopupButtonID="Image2"
                            TargetControlID="txtNgaySinh" Format="MM/dd/yyyy" onclienthidden="calHidden()" 
                                onclientshown="calShown()" >
                            </ajaxToolkit:CalendarExtender>
                        </div>


                    </td>
                    <td colspan="3" rowspan="3" style="text-align: center"> 
                        <img  alt="" src="../Images/silhouette_default.gif" 
                            style="border-style: solid; border-width: 1px" />       
                    </td>
                </tr>
                <tr>
                    <td style="width: 100px">Địa chỉ</td>
                    <td style="width: 105px">
                        <asp:TextBox ID="txtDiaChi" runat="server" 
                            TextMode="MultiLine"></asp:TextBox></td>
                </tr>
                <tr>
                <td style="width: 100px; height: 21px">
                    Hình ảnh</td>
                <td style="width: 105px" >
                    <asp:FileUpload ID="FileUpload1" runat="server" Width="105px" />
                    <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" 
                        ControlToValidate="FileUpload1" ErrorMessage="*" ValidationExpression= "^([0-9a-zA-Z_\-~ :\\])+(.jpg|.JPG|.jpeg|.JPEG|.bmp|.BMP|.gif|.GIF|.png|.PNG)$"> </asp:RegularExpressionValidator> 
            </td>
            </tr>
            </table>
        
		    <div class="popup_Buttons">
			    <asp:Button ID="btnSavePerson" runat="server" Text="Save"  CausesValidation="true" />
			    <asp:Button ID="btnCancelPerson" runat="server" Text="Cancel" CausesValidation="true" />
		    </div>
	    </asp:Panel>  

</asp:Content>

